#ifndef MAGNETIC_ECODER_H_
#define MAGNETIC_ECODER_H_

class MagneticEncoder
{
  public:
   MagneticEncoder(void);

   int getAngle(void); // Degrees 0-359
  
  private:
    unsigned int read(unsigned int command);
    void write(unsigned int command, unsigned int data);
    void writeCommand(unsigned int command);
    void setDataDirectionInput(void);
    void setDataDirectionOutput(void);
  
};


#endif /* MAGNETIC_ECODER_H_ */
